<%--
  Created by IntelliJ IDEA.
  User: 16690
  Date: 2020/9/17
  Time: 21:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-3.5.1.min.js"></script>
</head>
<body>
<script type="text/javascript">
    $(function () {
        let message={
            type: "post",
            data:"username = 张三丰&password = 123123",
            data_type: "json",
            error:function (x,msg) {
                console.log(x);
                console.log(msg);
            },
            success:function (data) {
                console.log(data);
            },
            url:"${pageContext.request.contextPath}/jQueryAjax"
        }
        $.ajax(message);
    })
</script>
</body>
</html>
